﻿<%@ Control Language="C#" EnableViewState="true" %>
<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<asp:Panel ID="panel1" runat="server">

    <script src="../../Script/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        function ckNull() {
            var p = document.getElementById("<%=征片.ClientID %>");
            var n = document.getElementById("<%=征年.ClientID %>");

            if (p.value != "") {
                var reg = /^[\u4e00-\u9fa5]{0,1}$/;
                if (!reg.test(p.value)) {                    
                    alert("只能输入一个中文字符");
                    return false;
                }
            }
            if (n.value != "") {                
                var re = /^[0-9][0-9][0-9][0-9]$/;
                if (!re.test(n.value)) {
                    alert("年份格式错误");
                    return false;
                }
            }
            /*比较时间大小：a)	催告送达时间>催告发出时间>听证调解时间>征收补偿决定送达时间>征收补偿决定下达时间>受理时间
            b)	强制执行听证时间>提交法院时间>a条件所有时间
            c)	先予执行听证时间>先予提交法院时间> a条件所有时间*/
            var cgsd = document.getElementById("<%=txtCUIGAOSONGDADATE.ClientID %>").value; /*催告送达时间*/
            var cgfc = document.getElementById("<%=txtCUIGAOFACHUDATE.ClientID %>").value; /*催告发出时间*/
            var tztj = document.getElementById("<%=txtTZSJ.ClientID %>").value; /*听证调解时间*/
            var bcsd = document.getElementById("<%=txtCAIJUESONGDADATE.ClientID %>").value; /*征收补偿决定送达时间*/
            var bcxd = document.getElementById("<%=txtCAIJUEXIADADATE.ClientID %>").value; /*征收补偿决定下达时间*/
            var sl = document.getElementById("<%=txtSLSJ.ClientID %>").value; /*受理时间*/
            var qztz = document.getElementById("<%=txtTINGZHENGDATE.ClientID %>").value; /*强制执行听证时间*/
            var tjfy = document.getElementById("<%=txtQIANGZHIDATE.ClientID %>").value; /*提交法院时间*/
            var xytz = document.getElementById("<%=txtXYTINGZHENGDATE.ClientID %>").value; /*先予执行听证时间*/
            var xytj = document.getElementById("<%=txtXYQIANGZHIDATE.ClientID %>").value; /*先予提交法院时间*/

            if (cgsd!="" && cgfc!="" && cgsd < cgfc) {
                alert("催告发出时间应早于催告送达时间");
                return false;
            }
            if (cgfc!="" && tztj!="" &&cgfc < tztj) {
                alert("听证调节时间应早于催告发出时间")
                return false;
            }
            if (tztj!="" && bcsd!="" &&tztj < bcsd) {
                alert("征收补偿决定送达时间应早于听证调节时间");
                return false;
            }
            if (bcsd!="" && bcxd!="" && bcsd < bcxd) {
                alert("征收补偿决定下达时间应早于征收补偿决定送达时间");
                return false;
            }
            if (bcxd!="" && sl!="" &&bcxd < sl) {
                alert("受理时间应早于征收补偿决定下达时间");
                return false;
            }
            if (qztz!="" && tjfy!="" && qztz < tjfy) {
                alert("提交法院时间应早于强制执行听证时间");
                return false;
            }
            if (tjfy!="" && cgsd!="" && tjfy < cgsd) {
                alert("催告送达时间应早于提交法院时间");
                return false;
            }
            if (xytz!="" && xytj!="" && xytz < xytj) {
                alert("先予提交法院时间应早于先予执行听证时间");
                return false;
            }
            if (xytj!="" && cgsd!="" && xytj < cgsd) {
                alert("催告送达时间应早于先予提交法院时间");
                return false;
            }
            return true;
        }
        function disttable() {
            document.getElementById('toptable').style.display = 'none';
            document.getElementById('back1').style.display = 'none';
        }
        function CheckLen(x, y) {            
            if (x.maxLength == y.length) {               
                document.getElementById("<%=征号.ClientID %>").focus();
            }
        }
        function aa() {
            var p = document.getElementById("<%=征片.ClientID %>");
            var n = document.getElementById("<%=征年.ClientID %>");
            var tt1 = escape(p.value);
            var tt2 = n.value;
            antuajax.ZS_BCJDLRAddControl.GetStrHao(tt1, n.value, function(res) {
  
                document.getElementById("<%=征号.ClientID %>").value = res;
            }, function(res) { }, false);
        }
    </script>
    <table id="toptable" width="100%" border="0" cellpadding="0" cellspacing="0" style="background-image: url(<%= Antu.Core.Components.SiteSettings.DefaultSiteSettings.DefaultThemeFolderMapPath %>images/menuthb.png);
        margin-top: 1px">
        <tr>
            <td valign="middle" height="30">
                <font style="font-size: 14px; font-weight: bold; color: #3E7CC3; float: left; color: black">
                    &nbsp;征收补偿决定案件登记明细 </font>
            </td>
        </tr>
    </table>
    <center>
        <table style="text-align: center; width: 95%; height: 20px; font-size: 12px" border="0px"
            cellpadding="0px" cellspacing="0px" class="window_tab_list">
            <tr>
                <th colspan="4">
                    <strong><span style="font-size: 11pt; color: #003300" >征收补偿决定案件登记明细</span></strong>
                </th>
            </tr>
            <tr>
                <td style="width: 150px">
                    案件号
                </td>
                <td style="width: 200px">
                     
                    <asp:TextBox ID="征片" runat="server" Width="25px" onchange="aa()"></asp:TextBox>征补字（
                    <asp:TextBox ID="征年" runat="server" Width="40px"  onchange="aa()" maxlength="4" onkeyup="CheckLen(this,this.value)"></asp:TextBox>）第
                    <asp:TextBox ID="征号" runat="server" Width="40px"></asp:TextBox>号
                </td>
                <td>
                    征收决定号
                </td>
                <td>
                    <asp:TextBox ID="txtXKZH" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    所在区
                </td>
                <td>
                    <asp:DropDownList ID="ddlSZQ" runat="server" onchange=" setp();aa();">
                    </asp:DropDownList>
                </td>
                <td>
                    征收人
                </td>
                <td style="width: 200px">
                    <asp:TextBox ID="txtSQR" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    房屋地址
                </td>
                <td>
                    <asp:TextBox ID="txtFWDZ" runat="server"></asp:TextBox>
                </td>
                <td>
                    被征收人
                </td>
                <td>
                    <asp:TextBox ID="txtBSQR" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    面积(㎡)
                </td>
                <td>
                    <asp:TextBox ID="txtJZMJ" runat="server"></asp:TextBox>
                </td>
              
                <td>
                    金额(元)
                </td>
                <td>
                    <asp:TextBox ID="txtPGJE" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td>
                    受理时间
                </td>
                <td>
                    <CBW:MPCalendar ID="txtSLSJ" runat="server" Width="145px"  />
                </td>
                <td>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    征收补偿决定下达时间
                </td>
                <td>
                    <CBW:MPCalendar ID="txtCAIJUEXIADADATE" runat="server" Width="145px" />
                </td>
                <td>
                    征收补偿决定送达时间
                </td>
                <td>
                   <CBW:MPCalendar ID="txtCAIJUESONGDADATE" runat="server" Width="145px" />
                </td>
            </tr>
            <tr>
                <td>
                    听证调解时间
                </td>
                <td>
                    <CBW:MPCalendar ID="txtTZSJ" runat="server" Width="145px" />
                </td>
                <td>
                    &nbsp;结案情况
                </td>
                <td>
                    <asp:DropDownList ID="ddlJAQK" runat="server" onchange="dislm()">
                    </asp:DropDownList>
                    &nbsp;
                </td>
            </tr>
<%--            <tr>
                <td>
                    处理人
                </td>
                <td>
                    <asp:TextBox ID="txtCLR" runat="server"></asp:TextBox>
                </td>  
                <td>
                    听证时间
                </td>
                <td>
                    <CBW:MPCalendar ID="txtTZSJ" runat="server" Width="145px" />
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td>
                    征收补偿决定送达时间
                </td>
                <td>
                    <CBW:MPCalendar ID="txtCAIJUESONGDADATE" runat="server" Width="145px" />
                </td>
                <td>
                    催告发出日期
                </td>
                <td>
                    <CBW:MPCalendar ID="txtCUIGAOFACHUDATE" runat="server" Width="145px" />
                </td>
            </tr>
            <tr>
                <td>
                    催告送达日期
                </td>
                <td>
                    <CBW:MPCalendar ID="txtCUIGAOSONGDADATE" runat="server" Width="145px" />
                </td>
                <td>
                    &nbsp;
                </td>
                <td>
                    &nbsp;
                </td>
            </tr>--%>
        </table>
        <hr style="color: #C5DEF7; width: 95%" />
        <table style="text-align: center; width: 95%;" border="0px" cellpadding="0px" cellspacing="0px"
            class="window_tab_list">
            <tr>
                <td style="width: 150px">
                    催告发出时间
                </td>
                <td style="width: 200px">
                    <CBW:MPCalendar ID="txtCUIGAOFACHUDATE" runat="server" Width="145px" />
                </td>
                <td style="width: 150px">
                    催告送达时间
                </td>
                <td>
                    <CBW:MPCalendar ID="txtCUIGAOSONGDADATE" runat="server" Width="145px" />
                </td>
            </tr>
        </table>
        <hr style="color: #C5DEF7; width: 95%" />
        <table style="text-align: center; width: 95%;" border="0px" cellpadding="0px" cellspacing="0px"
            class="window_tab_list">
            <tr>
                <td style="text-align: center; width: 150px">
                    提交法院时间
                </td>
                <td style="width: 200px">
                    <CBW:MPCalendar ID="txtQIANGZHIDATE" runat="server" Width="145px" />
                </td>
                <td style="text-align: center; width: 150px">
                    强制执行听证时间
                </td>
                <td>
                    <CBW:MPCalendar ID="txtTINGZHENGDATE" runat="server" Width="145px" />
                </td>
            </tr>
            <tr>
                <td style="text-align: center">
                    裁定结果
                </td>
                <td>
                    <asp:DropDownList ID="ddlFYSLJG" runat="server">
                    </asp:DropDownList>
                </td>
                <td style="text-align: center">
                    执行情况
                </td>
                <td>
                    <asp:DropDownList ID="ddlFYZXQK" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
          </table>
        <hr style="color: #C5DEF7; width: 95%" />
        <table style="text-align: center; width: 95%;" border="0px" cellpadding="0px" cellspacing="0px"
            class="window_tab_list">
            <tr>
                <td style="text-align: center; width: 150px">
                    先予提交法院时间
                </td>
                <td style="width: 200px">
                    <CBW:MPCalendar ID="txtXYQIANGZHIDATE" runat="server" Width="145px" />
                </td>
                <td style="text-align: center; width: 150px">
                    先予执行听证时间
                </td>
                <td>
                    <CBW:MPCalendar ID="txtXYTINGZHENGDATE" runat="server" Width="145px" />
                </td>
            </tr>
            <tr>
                <td style="text-align: center">
                    先予裁定结果
                </td>
                <td>
                    <asp:DropDownList ID="ddlXYFYSLJG" runat="server">
                    </asp:DropDownList>
                </td>
                <td style="text-align: center">
                    先予执行情况
                </td>
                <td>
                    <asp:DropDownList ID="ddlXYFYZXQK" runat="server">
                    </asp:DropDownList>
                </td>
            </tr>
          </table>
        <hr style="color: #C5DEF7; width: 95%" />
<%--        <table style="text-align: center; width: 95%;" border="0px" cellpadding="0px" cellspacing="0px"
            class="window_tab_list">
            <tr>
                <td style="width: 150px">
                    征收人
                </td>
                <td style="width: 200px">
                    <asp:TextBox ID="txtSQR" runat="server"></asp:TextBox>
                </td>
                <td style="width: 150px">
                    被征收人
                </td>
                <td>
                    <asp:TextBox ID="txtSQRDLR" runat="server"></asp:TextBox>
                </td>
            </tr>
          </table>--%>
          <%--         <hr style="color: #C5DEF7; width: 95%" />
                    <table style="text-align: center; width: 95%;" border="0px" cellpadding="0px" cellspacing="0px"
                        class="window_tab_list">
                        <tr>
                            <td style="width: 150px">
                                被申请人
                            </td>
                            <td style="width: 200px">
                                <asp:TextBox ID="txtBSQR" runat="server"></asp:TextBox>
                            </td>
                            <td style="width: 150px">
                                被申请人代理人电话
                            </td>
                            <td>
                                <asp:TextBox ID="txtBSQRDLRDH" runat="server"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                被申请人代理人
                            </td>
                            <td>
                                <asp:TextBox ID="txtBSQRDLR" runat="server"></asp:TextBox>&nbsp;
                            </td>
                            <td>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                     </table>--%>
         <hr style="color: #C5DEF7; width: 95%" />
        <table style="text-align: center; width: 95%;" border="0px" cellpadding="0px" cellspacing="0px"
            class="window_tab_list">
            <tr style="height: 60px;">
                <td style=" width:15%;">
                    备注
                </td>
                <td colspan="3">
                    <asp:TextBox ID="txtBZ" runat="server" TextMode="MultiLine" Width="95%" Height="60px"></asp:TextBox>
                </td>
            </tr>          
            <tr>
                <td colspan="4">                
                    <asp:Button ID="btn_Insert" runat="server" Text="保存" OnClientClick="return ckNull()" />&nbsp;
                    <input id="back1" type="button" value="返回" onclick="javascript:window.location.href=('ZS_BCJDLR.aspx');" />
                </td>
            </tr>
        </table>
    </center>
    <div style="display: none">
        <asp:TextBox ID="txtID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtIID" runat="server"></asp:TextBox>
        <asp:TextBox ID="txtCASEID" runat="server" Width="0px" Height="0px"></asp:TextBox>
       <asp:TextBox ID="txtQWSX" runat="server" Width="60px"></asp:TextBox>
    </div>
    <CBW:MPPersistence ID="Persistence1" runat="server">
    </CBW:MPPersistence>
</asp:Panel>
<script type="text/javascript">
    function dislm() {
        var t1 = document.getElementById('<%=ddlJAQK.ClientID %>');
        var obj = document.getElementById('<%=txtCUIGAOFACHUDATE.ClientID %>');
        var obj2 = document.getElementById('<%=txtCUIGAOSONGDADATE.ClientID %>');
        var obj3 = document.getElementById('<%=txtQIANGZHIDATE.ClientID %>');
        var obj4 = document.getElementById('<%=txtTINGZHENGDATE.ClientID %>');
        var obj5 = document.getElementById('<%=txtXYQIANGZHIDATE.ClientID %>');
        var obj6 = document.getElementById('<%=txtXYTINGZHENGDATE.ClientID %>');
        var tt1 = document.getElementById('<%=ddlFYSLJG.ClientID %>');
        var tt2 = document.getElementById('<%=ddlXYFYSLJG.ClientID %>');
        var tt3 = document.getElementById('<%=ddlFYZXQK.ClientID %>');
        var tt4 = document.getElementById('<%=ddlXYFYZXQK.ClientID %>');
        var temn = t1.value;
        if (temn == '3') {
            obj.setAttribute("onclick", "javascript:setformat('-');setday(this);", true);
            obj2.setAttribute("onclick", "javascript:setformat('-');setday(this);", true);
            obj3.setAttribute("onclick", "javascript:setformat('-');setday(this);", true);
            obj4.setAttribute("onclick", "javascript:setformat('-');setday(this);", true);
            obj5.setAttribute("onclick", "javascript:setformat('-');setday(this);", true);
            obj6.setAttribute("onclick", "javascript:setformat('-');setday(this);", true);
            tt1.disabled = false;
            tt2.disabled = false;
            tt3.disabled = false;
            tt4.disabled = false;
            
        } else {
        obj.removeAttribute("onclick");
        obj2.removeAttribute("onclick");
        obj3.removeAttribute("onclick");
        obj4.removeAttribute("onclick");
        obj5.removeAttribute("onclick");
        obj6.removeAttribute("onclick");
        tt1.disabled = true;
        tt2.disabled = true;
        tt3.disabled = true;
        tt4.disabled = true;
        
        }

    }

    function setp() {
        var t = document.getElementById('<%=ddlSZQ.ClientID %>');
        var index = t.selectedIndex;
        var tt = t.options[index].innerHTML;
        document.getElementById("<%=征片.ClientID %>").value = tt.substr(0, 1);
    }
</script>